package cn.itsource.basic.query;

import lombok.Data;

@Data
public class BaseQuery {

    //分页的当前页 k  rui  te  pai ge
    private Integer currentPage = 1;
    //每页显示的条数
    private Integer pageSize = 10;

    private String keywords;

    //显示分页的起始页
    public Integer getBegin(){
        return (this.currentPage-1)*pageSize;
    }

}
